import { defineStore } from "pinia"
import { ref } from "vue"

export default defineStore('users', () => {
    //声明用户信息的store
    let userInfo = ref({})
    // 用户的按钮权限
    let permission = ref({})

    return { userInfo, permission }
},
    {
        // 持久化存储
        persist: true
    })